package com.hyj.shop.project.index.mapper;

import com.hyj.shop.project.index.domain.Article;
import com.hyj.shop.project.index.domain.Comment;
import com.hyj.shop.project.index.domain.HomeBackground;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface IndexMapper {
//    查询文章列表
    public List<Article> queryByPage(Article article);
//    提交评论
    public void submitComment(Map map);
//    查询评论
    public List<Comment> queryComment(int articleId);
//    发布文章
    public void publishArticle(Article article);
    // 更新文章
    public void updateArticle(Article article);
    Article articleDetail(int articleId);
    public List<HomeBackground> getHomeBackground();
}
